import java.util.ArrayList;
public class Main{
    public static void main(String[] args) {
    Course mathCourse = new Course("MATH101", "Mathematics", 4);
    Course physicsCourse = new Course("PHYS101", "Physics");

    Student student1 = new Student("S001", "Alice", 20);
    Student student2 = new Student("S002", "Bob");

    student1.enrollInCourse(mathCourse);
    student1.enrollInCourse(physicsCourse);
    student2.enrollInCourse(physicsCourse);

    mathCourse.printCourseInfo();
    physicsCourse.printCourseInfo();

    student1.printStudentInfo();
    student2.printStudentInfo();

    student1.dropCourse(physicsCourse);
    student2.dropCourse(mathCourse);
}

}